﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Library.Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            图书借阅排行榜:<br />
            <table>
                <asp:GridView ID="gvBookSort" runat="server" AutoGenerateColumns="False" Font-Size="9pt" HorizontalAlign="Center"
                    PageSize="5" Width="678px" OnRowDataBound="gvBookSort_RowDataBound">
                    <Columns>
                        <asp:BoundField HeaderText="排名" />
                        <asp:BoundField DataField="bookcode" HeaderText="图书条形码" ReadOnly="True" />
                        <asp:BoundField DataField="bookname" HeaderText="图书名称" />
                        <asp:BoundField DataField="type" HeaderText="图书类型" />
                        <asp:BoundField DataField="bcase" HeaderText="书架" />
                        <asp:BoundField DataField="pubname" HeaderText="出版社" />
                        <asp:BoundField DataField="author" HeaderText="作者" />
                        <asp:BoundField DataField="price" HeaderText="定价" />
                    </Columns>
                    <RowStyle HorizontalAlign="Center" />
                </asp:GridView>
            </table>
            读者借阅排行榜:<br />
            <table>
                <asp:GridView ID="gvReaderSort" runat="server" AutoGenerateColumns="False" Font-Size="9pt" HorizontalAlign="Center"
                    PageSize="5" Width="678px" OnRowDataBound="gvReaderSort_RowDataBound">
                    <Columns>
                        <asp:BoundField HeaderText="排名" />
                        <asp:BoundField DataField="id" HeaderText="读者编号" />
                        <asp:BoundField DataField="name" HeaderText="读者姓名" />
                        <asp:BoundField DataField="type" HeaderText="读者类型" />
                        <asp:BoundField DataField="paperType" HeaderText="证件类型" />
                        <asp:BoundField DataField="paperNum" HeaderText="证件号码" />
                        <asp:BoundField DataField="tel" HeaderText="电话" />
                        <asp:BoundField DataField="sex" HeaderText="性别" />
                    </Columns>
                    <RowStyle HorizontalAlign="Center" />
                </asp:GridView>
            </table>
        </div>
    </form>
</body>
</html>
